﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace eXamineInterface.Events
{
    public class CloseTabEventArgs : EventArgs
    {
        private int nTabIndex = -1;

        public CloseTabEventArgs(int nTabIndex)
        {
            Interrupt = false;
            this.nTabIndex = nTabIndex;
        }

        /// <summary>
        /// Get/Set the tab index value where the close button is clicked
        /// </summary>
        public int TabIndex
        {
            get
            {
                return this.nTabIndex;
            }
            set
            {
                this.nTabIndex = value;
            }
        }

        public bool Interrupt { get; set; }
    }
}
